<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>promise</title>
    <script>
       let user1 = {

           name:"ldh",
           age:50
       };
       let user2 = {
           id:10086,
           age:80
       }
       let user3 = {
           id:10010,
           name:"哈哈",
           age:30,
           address:"上海浦东"
       }

       //把后面所有的值赋值给user1，如果user1有这个属性，则覆盖值，没有添加属性赋值，次序由近及远
      Object.assign(user1,user2,user3);

       console.log(user1);
       console.log(user2);
       console.log(user3);



    </script>
</head>
<body>

</body>
</html>